package com.itliang.constant;

/**
 * MQTT常量
 *
 * @author : liangzhuoyuan
 */
public class MqttConstants {

    /**
     * 收集数据的主题
     */
    public static final String COLLECTION_DATA_TOPIC = "stmpub";

    /**
     *
     */
    public static final String ESP_TO_SPRINGBOOT_TOPIC = "stmgetstaus";

    /**
     *
     */
    public static final String SPRINGBOOT_TO_ESP_TOPIC = "webstatus";

    public static final Integer MQTT_QOS_0 = 0;
    public static final Integer MQTT_QOS_1 = 1;
    public static final Integer MQTT_QOS_2 = 2;

    /**
     * 温度 key
     */
    public static final String TEMPERATURE_MAP_KEY = "temperature";

    /**
     * 湿度 key
     */
    public static final String HUMIDITY_MAP_KEY = "humidity";

    /**
     * 光照 key
     */
    public static final String LIGHT_MAP_KEY = "light";

    /**
     * 二氧化碳 key
     */
    public static final String CARBON_DIOXIDE_MAP_KEY = "carbonDioxide";

}

